package com.leetroll.common.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("public.order")
public class Order extends SuperEntity {

    //流水号
    private String batchCode;
    //支付号
    private String payCode;
    //用户id
    private Long userId;
    //总金额
    private Double totalPrice;
    //订单状态
    private String status;
    //支付方式
    private String payChannel;
    private String body;
    //支付时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date payTime;

}
